<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
<link rel="stylesheet" href="/stylesheets/le.css">
    <script src="https://cdn.bootcss.com/less.js/3.0.0-pre.1/less.js"type="text/javascript"></script>
    <style>
blockquote,body,button,dd,dl,dt,fieldset,form,h1,h2,h3,h4,h5,h6,hr,input,legend,li,ol,p,pre,td,textarea,th,ul{margin:0;padding:0}body,button,input,select,textarea{font:12px/1.5 tahoma,arial,'Hiragino Sans GB',\5b8b\4f53,sans-serif}h1,h2,h3,h4,h5,h6{font-size:100%}address,cite,dfn,em,var{font-style:normal}code,kbd,pre,samp{font-family:courier new,courier,monospace}small{font-size:12px}ol,ul{list-style:none}a{text-decoration:none}up{vertical-align:text-top}sub{vertical-align:text-bottom}legend{color:#000}fieldset,img{border:0}button,input,select,textarea{font-size:100%}table{border-collapse:collapse;border-spacing:0}
</style>
</head>
<body>
    <header>
        <h1>后台管理</h1>
    </header>
    <div id="main">
        <div id="lside">
            <aside>
                <h4>分类管理</h4>
                <ul>
                    <li><a href="/tadd">首页</a></li>
                    <li><a href="/tadd">分类列表</a></li>
                    <li><a href="/tlist">添加分类</a></li>
                    <li><a href="/liuyan">留言管理</a></li>
                </ul>
            </aside>
            <aside>
                <h4>文章管理</h4>
                <ul>
                    <li><a href="#">文章列表</a></li>
                    <li><a href="/testadd">发表文章</a></li>
                </ul>
            </aside>
        </div>
        <div id="rside">
            <table>
                <tr>
                    <td>序号</td>
                    <td>日期</td>
                    <td>标题</td>
                    <td>分类</td>
                    <td>回复</td>
                    <td>状态</td>
                </tr>
                <% for(var i=0;i<msg.length;i++){ %>
                <tr>
                    <td><%= i+1 %></td>
                    <td>2017/04/03</td>
                    <td><a href="#"><%= msg[i].title %></a></td>
                    <td><%= msg[i].tag %></td>
                    <td><span class="badge">0</span></td>
                    <td><a href="/gai/<%= msg[i]._id %>">修改</a><a href="/biao/<%= msg[i]._id %>">删除</a></td>
                </tr>
                <% } %>
            </table>
            <div id="page">
                Pages:
                1
                <a href="#">2</a>
                <a href="#">3</a>
            </div>
        </div>
    </div>
</body>
</html>